package app.vendorportal.api.marketplace.data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author carl.you
 */
@XmlRootElement(name = "market-place-submit-order-result")
@XmlAccessorType(XmlAccessType.FIELD)
public class MarketplaceSubmitOrderResult {

    @XmlElement(name = "order-id")
    private String orderId;

    @XmlElement(name = "status")
    private SubmitOrderStatus status;

    public static enum SubmitOrderStatus {
        SUCCESS, FAILED
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public SubmitOrderStatus getStatus() {
        return status;
    }

    public void setStatus(SubmitOrderStatus status) {
        this.status = status;
    }
}
